package com.edgar.loglib;

import java.text.SimpleDateFormat;
import java.util.Locale;

/**
 * Created by edgar on 2016/1/17.
 */
public class Constants {
    /**
     * 日志信息格式:
     * <p>2016-1-17 12:59:12[进程id_进程名称|线程id|日志级别|TAG][类名|方法名|行数]日志消息</p>
     */
    public static final String LOG_FORMAT = "%s [%s_%s|%s|%s|%s] [%s|%s|%s] %s";
    /**
     * 日志时间
     */
    public static final String S_LOG_LINE_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String LOG_DATE_FILE_NAME = "yyyyMMdd";
    public static final String LOG_FILE_PREFIX = "log_";
    public static final String LOG_FILE_SUFFIX = ".log";
    public static final SimpleDateFormat LOG_FILE_FORMAT = new SimpleDateFormat(LOG_DATE_FILE_NAME, Locale.getDefault());
    public static final SimpleDateFormat LOG_LINE_DATE_FORMAT = new SimpleDateFormat(S_LOG_LINE_DATE_FORMAT,Locale.getDefault());
}